package com.nyt.org.modules.TicketStaion.service;

import com.nyt.org.modules.api.model.XMLHead;
import org.springframework.beans.factory.annotation.Value;

public abstract class FaService {

    @Value("${head.app}")
    private String app;
    @Value("${head.ver}")
    private String ver;
    @Value("${head.sellway}")
    private String sellway;
    @Value("${head.appkey}")
    private String appkey;
    @Value("${head.appsecret}")
    private String appsecret;
    @Value("${head.operid}")
    private String operid;
    @Value("${head.branchid}")
    private String branchid;

    public XMLHead bulldHEADXml(String msgCode){
        XMLHead head = new XMLHead();
        head.setApp(app);
        head.setVer(ver);
        head.setMsgCode(msgCode);
        head.setSellWay(sellway);
        head.setAppKey(appkey);
        head.setAppSecret(appsecret);
        head.setOperID(operid);
        head.setBranchID(branchid);
        return head;
    }

}
